import { createSSRApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";

Array.prototype.findLastIndex = function(predicate) {  
  for (let i = this.length - 1; i >= 0; i--) {  
    console.log(111);
    
      if (predicate(this[i], i, this)) {  
          return i;  
      }  
  }  
  return -1;  
};  

export function createApp() {
  const app = createSSRApp(App);
  app.use(createPinia() as any);
  return {
    app,
  };
}
